home *** CD-ROM | disk | FTP | other *** search
/ PC World 2004 February / PCWorld_2004-02_cd.bin / software / vyzkuste / inno / isetup-4.0.10.exe / {app} / Examples / ISPPExample1.iss < prev    next >
Text File  |  2003-09-14  |  1KB  |  45 lines

  1. ; -- ISPPExample1.iss --
  2. ;
  3. ; This script shows various basic things you can achieve using Inno Setup Preprocessor by Alex Yackimoff.
  4. ; To enable commented #define's, either remove the ';' or use ISPPCC with the /D switch.
  5. ;
  6. ; For more information about ISPP see http://ispp.sourceforge.net
  7.  
  8. #pragma option -v+
  9. #pragma verboselevel 9
  10.  
  11. #define Debug
  12.  
  13. ;#define AppEnterprise
  14.  
  15. #ifdef AppEnterprise
  16.   #define AppName "My Program Enterprise Edition"
  17. #else
  18.   #define AppName "My Program"
  19. #endif
  20.  
  21. #define AppVersion GetFileVersion(AddBackslash(SourcePath) + "MyProg.exe")
  22.  
  23. [Setup]
  24. AppName={#AppName}
  25. AppVerName={#AppName} version {#AppVersion}
  26. DefaultDirName={pf}\{#AppName}
  27. DefaultGroupName={#AppName}
  28. UninstallDisplayIcon={app}\MyProg.exe
  29. LicenseFile={#file AddBackslash(SourcePath) + "ISPPExample1License.txt"}
  30.  
  31. [Files]
  32. Source: "MyProg.exe"; DestDir: "{app}"
  33. #ifdef AppEnterprise
  34. Source: "MyProg.hlp"; DestDir: "{app}"
  35. #endif
  36. Source: "Readme.txt"; DestDir: "{app}"; \
  37.   Flags: isreadme
  38.  
  39. [Icons]
  40. Name: "{group}\{#AppName}"; Filename: "{app}\MyProg.exe"
  41.  
  42. #ifdef Debug
  43.   #expr SaveToFile(AddBackslash(SourcePath) + "Preprocessed.iss")
  44. #endif
  45.